# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=telepathy-idle
pkgver=0.2.2
pkgrel=2
pkgdesc="connection manager for the IRC protocol"
url="https://telepathy.freedesktop.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="telepathy-glib-dev glib-dev dbus-dev dbus-glib-dev libxslt
	python3"
checkdepends="dbus py3-dbus"
subpackages="$pkgname-doc"
source="https://telepathy.freedesktop.org/releases/telepathy-idle/telepathy-idle-$pkgver.tar.gz"

prepare() {
	default_prepare
	update_config_sub

	export PATH="$PATH:$PWD"
	ln -s /usr/bin/python3 python
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="c66cf7b70c84a9b7b1ada01712b8d3b683f15a4021bb2d0f6d868b4ab30e2fb12fd26dd8d5ba25b5050e055bf425295049e84a53198d6586f7cfd7c6bc02f826  telepathy-idle-0.2.2.tar.gz"
